package com.snail.snailvr.views.fragments;

import android.support.v4.widget.SwipeRefreshLayout;
import android.view.View;

import com.snailgame.fastdev.FastDevFragment;

/**
 * BaseFragment
 * Created by snail on 16/3/28.
 */
public abstract class BaseFragment extends FastDevFragment {

    protected boolean isFragmentVisible =false;

    protected void showLoading(SwipeRefreshLayout swipeRefreshLayout,View loadingView) {
        swipeRefreshLayout.setRefreshing(true);
        loadingView.setVisibility(View.VISIBLE);
    }

    protected void hideLoading(SwipeRefreshLayout swipeRefreshLayout,View loadingView){
        swipeRefreshLayout.setRefreshing(false);
        loadingView.setVisibility(View.GONE);
    }
}
